package com.hjm.project.merchantInfo.merRecord.service.impl;

import java.util.List;

import com.hjm.project.merchantInfo.merRecord.domain.MerRecord;
import com.hjm.project.merchantInfo.merRecord.mapper.MerRecordMapper;
import com.hjm.project.merchantInfo.merRecord.service.IMerRecordService;
import org.springframework.stereotype.Service;

import com.hjm.common.utils.text.Convert;

import javax.annotation.Resource;

/**
 * 商户换机,商户迁移Service业务层处理
 * 
 * @author maker-platform
 * @date 2021-04-01
 */
@Service
public class MerRecordServiceImpl implements IMerRecordService
{
    @Resource
    private MerRecordMapper merRecordMapper;

    /**
     * 查询商户换机,商户迁移
     * 
     * @param id 商户换机,商户迁移ID
     * @return 商户换机,商户迁移
     */
    @Override
    public MerRecord selectMerRecordById(Integer id)
    {
        return merRecordMapper.selectMerRecordById(id);
    }

    /**
     * 查询商户换机,商户迁移列表
     * 
     * @param merRecord 商户换机,商户迁移
     * @return 商户换机,商户迁移
     */
    @Override
    public List<MerRecord> selectMerRecordList(MerRecord merRecord)
    {
        return merRecordMapper.selectMerRecordList(merRecord);
    }

    /**
     * 新增商户换机,商户迁移
     * 
     * @param merRecord 商户换机,商户迁移
     * @return 结果
     */
    @Override
    public int insertMerRecord(MerRecord merRecord)
    {
        return merRecordMapper.insertMerRecord(merRecord);
    }

    /**
     * 修改商户换机,商户迁移
     * 
     * @param merRecord 商户换机,商户迁移
     * @return 结果
     */
    @Override
    public int updateMerRecord(MerRecord merRecord)
    {
        return merRecordMapper.updateMerRecord(merRecord);
    }

    /**
     * 删除商户换机,商户迁移对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteMerRecordByIds(String ids)
    {
        return merRecordMapper.deleteMerRecordByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除商户换机,商户迁移信息
     * 
     * @param id 商户换机,商户迁移ID
     * @return 结果
     */
    @Override
    public int deleteMerRecordById(Integer id)
    {
        return merRecordMapper.deleteMerRecordById(id);
    }
}
